import request from '@/utils/request'

// 查询产品BOM单列表
export function listBom(query) {
  return request({
    url: '/system/bom/list',
    method: 'get',
    params: query
  })
}

// 查询产品BOM单详细
export function getBom(id) {
  return request({
    url: '/system/bom/' + id,
    method: 'get'
  })
}

// 新增产品BOM单
export function addBom(data) {
  return request({
    url: '/system/bom',
    method: 'post',
    data: data
  })
}

// 修改产品BOM单
export function updateBom(data) {
  return request({
    url: '/system/bom',
    method: 'put',
    data: data
  })
}

// 删除产品BOM单
export function delBom(id) {
  return request({
    url: '/system/bom/' + id,
    method: 'delete'
  })
}

export function wlseleid(data){
  return request({
    url: '/system/model/seleid/',
    method:'post',
    data:data
  })
}
export function selewl(data){
  return request({
    url: '/system/model/selewl/',
    method:'post',
    data:data
  })
}